<template>
  <h2>当前求和为：{{sum}}</h2>
  <button @click="increment">点我+1</button>
  <button @click="decrement">点我-1</button>
  <hr>
  <img v-for="(u,index) in dogList" :key="index" :src="(u as string)">

  <button @click="getDog">再来一只狗</button>
</template>


<script lang="ts" setup name="Person">
import useSum from '@/hooks/useSum'
import useDog from '@/hooks/useDog'

let {sum,increment,decrement} = useSum()
let {dogList,getDog} = useDog()

</script>